package com.zisu.springcloud.controller;

import com.zisu.springcloud.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Desc: ""
 * @Author: caixiang
 * @DATE: 2020/9/23 9:24
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider iMessageProvider;

    @GetMapping(value = "/sendMessage")
    public String send(){
        System.out.println("iMessageProviderHashCode:"+iMessageProvider.hashCode());
        return iMessageProvider.send();
    }
}